#include "Camera.h"

Vector3f Camera::getPosition(){
  return Position;
}

Vector3f Camera::getAngle(){
  return Angle;
}

Vector3f Camera::getDestination(){
  return Destination;
}

void Camera::setPosition(Vector3f pos){
  Position = pos;
}

void Camera::setAngle(Vector3f ang){
  Angle = ang;
}

void Camera::setDestination(Vector3f dest){
  Destination = dest;
}


Camera::Camera (Vector3f pos, Vector3f angle, Vector3f dest) : _position(pos), _angle(angle), _destination(dest)
{
    _emgr = EventManager::getInstance();
}

Camera::~Camera(){}

void Camera::getEvent()
{
	EventManager _emgr = EventManager::getInstance();
    _emgr->getEvent();
    if(_emgr->isKeyDown('A'))
        _position.x+=pas;
    if(_emgr->isKeyDown('Z'))
        _position.y+=pas;
    if(_emgr->isKeyDown('E'))
        _position.z+=pas;
    if(_emgr->isKeyDown('R'))
        _angle.x+=pas;
    if(_emgr->isKeyDown('T'))
        _angle.y+=pas;
    if(_emgr->isKeyDown('Y'))
        _angle.z+=pas;
    if(_emgr->isKeyDown('U'))
        _destination.x+=pas;
    if(_emgr->isKeyDown('I'))
        _destination.y+=pas;
    if(_emgr->isKeyDown('O'))
       _destination.z+=pas;
}

